'use strict';

import express from 'express';
import render from './utils';

const app = express();

app.use('/public', express.static('public'));

app.get('*', (req, res) => {
    const template = render(req, res);
    res.send(template);
});

app.listen(8080, () => {
    console.log('Now server is listening on port 8080.');
});
